import Vue from 'vue'
import VueRouter from 'vue-router'
import index from '../views/index'
import Login from '../views/login'
import Place from '../views/placeWeather'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        redirect: '/login'
    },
    {
        path: '/index',
        name: 'index',
        component: index
    },
    {
        path: '/login',
        name: 'Login',
        component: Login
    },
    {
        path: '/place',
        name: 'Place',
        component: Place
    }

]

const router = new VueRouter({
  routes
})

export default router
